﻿using Mimas.Framework.Server.UserManagement;
using Mimas.Framework.Shared.Data.CriteriaObjects;
using Mimas.Framework.Shared.Data.DataTransferObjects;

namespace Mimas.Framework.Shared.Services.UserManagementServices
{
    public class UserManager : IUserManager
    {
        public bool UserLogin(UserLoginCO criteria)
        {
            return UserManagementBL.UserLogin(criteria);
        }

        public bool UserLogOut()
        {
            return UserManagementBL.UserLogOut();
        }

        public UserDTO[] SearchUsers(UserCO criteria)
        {
            return UserManagementBL.SearchUsers(criteria);
        }

        public UserDTO[] SaveUsers(UserDTO[] data)
        {
            return UserManagementBL.SaveUsers(data);
        }

        public UserBanListDTO[] SearchUserBanList(UserBanListCO criteria)
        {
            return UserManagementBL.SearchUserBanList(criteria);
        }

        public UserBanListDTO[] SaveUserBanList(UserBanListDTO[] data)
        {
            return UserManagementBL.SaveUserBanList(data);
        }
    }
}
